package textrpg;

import textrpg.guihandlers.GuiCoreInitializer;
import textrpg.guihandlers.MiningGui;
import java.awt.BorderLayout;
import java.awt.Container;
import java.io.IOException;
import javax.swing.BoxLayout;
import javax.swing.JFrame;
import javax.swing.JPanel;
import textrpg.guihandlers.InventoryGui;

public class Main {

    public static void main(String[] args) throws IOException {
        Loader load = new Loader();
        
        GuiCoreInitializer gui = new GuiCoreInitializer();
        MiningGui mineGui = new MiningGui();
        InventoryGui inventGui = new InventoryGui();
        
        JFrame myFrame = new JFrame();
        Container pane = myFrame.getContentPane();
        JPanel mainPanel = new JPanel();
        JPanel subPanel = new JPanel();
        pane.add(mainPanel);

        mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.Y_AXIS));
        pane.add(gui.gameLabel, BorderLayout.NORTH);

        mainPanel.add(subPanel);
        subPanel.add(gui.textArea);
        mainPanel.add(mineGui.mineCopperButton);
        mainPanel.add(mineGui.mineIronButton);
        mainPanel.add(mineGui.mineMithrilButton);
        mainPanel.add(mineGui.mineAdamantiteButton);
        mainPanel.add(mineGui.mineRuneButton);
        mainPanel.add(inventGui.viewInventoryButton);

        myFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        myFrame.setSize(800, 800);
        myFrame.setVisible(true);
    }
}


